package com.hgw.Demo02CommandPattern.Exercises17_10_3;

/**
 * Data time:2021/12/16 21:53
 * StudentID:2019112118
 * Author:hgw
 * Description: 打开电风扇，充当具体命令类
 */
public class OffElectricFan extends Command{
    private ElectricFan EFObj;

    public OffElectricFan() {
        EFObj = new ElectricFan();
    }

    @Override
    public void execute() {
        EFObj.offElectricFan();
    }

}
